<?php
namespace app\home\model;

/**
 * This is the model class for table "account_limit".
 * @property AccountsInfoModel $accountsInfoModel
 */
class Idfa724Model extends \think\Model
{
    protected $connection = 'db_operatelog';
    protected $table = 'idfa_724';

    const INIT = 0;
    const ZHUAN_KE_TYPE = 1;
    const XIAN_WAN_TYPE = 2;
    const QI_MAI_TYPE = 3;
    const SHAN_DIAN_WAN_TYPE = 4;

    public static function typeMap(){
        return [
            self::INIT=>'初始化-未绑定广告商',
            self::ZHUAN_KE_TYPE=>'赚客广告',
            self::XIAN_WAN_TYPE=>'闲玩广告',
            self::QI_MAI_TYPE=>'七麦广告',
            self::SHAN_DIAN_WAN_TYPE=>'闪电玩广告',
        ];
    }

    public static function typeSecret(){
        return [
            self::INIT=>'',
            self::ZHUAN_KE_TYPE=>'b0baee9d279d34fa1dfd71aadb908c3f',
            self::XIAN_WAN_TYPE=>'3d2172418ce305c7d16d4b05597c6a59',
            self::QI_MAI_TYPE=>'1d2172418ce305c7d16d4b05597c6a50',
            self::SHAN_DIAN_WAN_TYPE=>'1d2172418ce305c7d16d4b05597c081e',
        ];
    }

    public function accountsInfoModel()
    {
        return $this->hasOne('AccountsInfoModel','UserID','UserID');
    }
}
